package com.hzcx.app.simplechat.ui.setting.presenter;

import android.content.Context;

import com.hzcx.app.simplechat.api.BaseDialogObserver;
import com.hzcx.app.simplechat.base.BasePresenter;
import com.hzcx.app.simplechat.model.PublicModel;
import com.hzcx.app.simplechat.model.SettingModel;
import com.hzcx.app.simplechat.ui.publicui.bean.ProtocolBean;
import com.hzcx.app.simplechat.ui.publicui.bean.UpdateVersionBean;
import com.hzcx.app.simplechat.ui.setting.bean.VipInfoBean;
import com.hzcx.app.simplechat.ui.setting.contract.AboutContract;
import com.hzcx.app.simplechat.ui.setting.contract.VipContract;
import com.hzcx.app.simplechat.util.app.AppHelper;

public class VipPresenter extends BasePresenter<VipContract.View> implements VipContract.Presenter {

    /**
     * 获取会员信息
     *
     * @param context
     */
    @Override
    public void getVipInfo(Context context) {
        SettingModel.getVipInfo(context, new BaseDialogObserver<VipInfoBean>(context) {
            @Override
            protected void onSuccess(VipInfoBean data) {
                mView.vipResult(data);
            }
        });
    }
}
